/**
* @class FB_Persona_GUI
* @author  Alexei Bratuhin
* @description constructor setting together all FB_Person_GUI_* classes
**/

package org.abratuhi.fbpersona.src.gui;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;

import org.abratuhi.fbpersona.src.model.FB_Persona_Client;

@SuppressWarnings("serial")
public class FB_Persona_GUI extends JFrame{
	
	FB_Persona_Client c = new FB_Persona_Client();

	public FB_Persona_GUI_menubar menubar = new FB_Persona_GUI_menubar(this, c);
	public FB_Persona_GUI_list list = new FB_Persona_GUI_list(this, c);
	public FB_Persona_GUI_search search = new FB_Persona_GUI_search(this, c);	
	
	public FB_Persona_GUI(){
		super();
		setVisible(true);
		setLayout(new BorderLayout());
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setLocation(0, 0);
		setSize(new Dimension(800, 600));
		setResizable(true);
		setTitle("Facebook Persona");
		setJMenuBar(menubar);
		add(list, BorderLayout.CENTER);
		add(search, BorderLayout.SOUTH);
		pack();
	}
	
	public void exit(){
		System.exit(0);
	}
	
	public static void main(String[] args){
		new FB_Persona_GUI();
	}

}
